<div class="card box newbox " id="itemID<%= itemID %>" onclick="loadItemModal(this.id.replace('itemID', ''))" data-toggle="modal"
  data-target="#itemModal" style="cursor:pointer;">
  <div class="switchToRow">
    <div class="cardImgArea" data-aspect-ratio="<%= aspectRatio %>" style="width: 100%;">
      <img class="card-img-top" src="https://xib-item-cover.oss-cn-beijing.aliyuncs.com/<%= coverFileName %>?x-oss-process=style/webp_compress"  onerror='$(this).css("display", "none")'>
    </div>
    <div class="card-body">
      <h5 class="card-title"><%= itemName %></h5>
      <h5 class="card-subtitle">￥<%= itemPrice%></h5>
      <p class="card-text itemDescriptionArea"><%= itemDescription%></p>
      <h5 class="card-sublitle">
        <% if (trans.deliverByPost) {%>
        <span class=" badge badge-primary">邮寄</span>
        <%}%>
          <% if (trans.deliverByFace) {%>
        <span class=" badge badge-success">当面交易</span>
        <%}%>
          <% if (trans.deliverNoNeed) {%>
        <span class=" badge badge-success">无需运送</span>
        <%}%>
          </h5>
      </div>
  </div>
</div>